/*
 * Create By: Software Automation Generator
 * Create Time : 2009-2-24 12:00
 * 
 */
namespace Jumpton.SFA.Server.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("EventLogConfig")]
    public class EventLogConfig : ObjectRow {
        
        public EventLogConfig() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public EventLogConfig(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected EventLogConfig(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("ID",true,true)]
        public decimal ID {
            get {
                return (System.Decimal)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        
        [Field("LogTypeKey")]
        public string LogTypeKey {
            get {
                return (System.String)GetValue("LogTypeKey");
            }
            set {
                SetValue("LogTypeKey", value);
            }
        }
        
        [Field("LogTypePortalID")]
        public decimal LogTypePortalID {
            get {
                return (System.Decimal)GetValue("LogTypePortalID");
            }
            set {
                SetValue("LogTypePortalID", value);
            }
        }
        
        [Field("LoggingIsActive")]
        public bool LoggingIsActive {
            get {
                return (System.Boolean)GetValue("LoggingIsActive");
            }
            set {
                SetValue("LoggingIsActive", value);
            }
        }
        
        [Field("KeepMostRecent")]
        public decimal KeepMostRecent {
            get {
                return (System.Decimal)GetValue("KeepMostRecent");
            }
            set {
                SetValue("KeepMostRecent", value);
            }
        }
        
        [Field("EmailNotificationIsActive")]
        public bool EmailNotificationIsActive {
            get {
                return (System.Boolean)GetValue("EmailNotificationIsActive");
            }
            set {
                SetValue("EmailNotificationIsActive", value);
            }
        }
        
        [Field("NotificationThreshold")]
        public decimal NotificationThreshold {
            get {
                return (System.Decimal)GetValue("NotificationThreshold");
            }
            set {
                SetValue("NotificationThreshold", value);
            }
        }
        
        [Field("NotificationThresholdTime")]
        public decimal NotificationThresholdTime {
            get {
                return (System.Decimal)GetValue("NotificationThresholdTime");
            }
            set {
                SetValue("NotificationThresholdTime", value);
            }
        }
        
        [Field("NotificationThresholdTimeType")]
        public decimal NotificationThresholdTimeType {
            get {
                return (System.Decimal)GetValue("NotificationThresholdTimeType");
            }
            set {
                SetValue("NotificationThresholdTimeType", value);
            }
        }
        
        [Field("MailFromAddress")]
        public string MailFromAddress {
            get {
                return (System.String)GetValue("MailFromAddress");
            }
            set {
                SetValue("MailFromAddress", value);
            }
        }
        
        [Field("MailToAddress")]
        public string MailToAddress {
            get {
                return (System.String)GetValue("MailToAddress");
            }
            set {
                SetValue("MailToAddress", value);
            }
        }
    }
}
